package com.bjtu.ptsite.tracker.entity;


import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 *
 * @author Zehao Wang, Junjie Zhang, Yutao Wei
 *
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("torrent_info")
public class TrackerMessage {


    private Long id;

    private String title;

    private String description;

    /**
     * 从.torrent中提取
     */
    private String infoHash;
    /**
     *  总大小
     */
    private Long fileSize;
    /**
     * 包含的文件数
     */
    private Integer fileCount;

    /**
     * 包含的文件数
     */
    private String fileName;
    /**
     * 存储.torrent文件的服务器路径
     */
    private String torrentPath;
    /**
     * 分类
     */
    private Integer category;
    /**
     * 是否匿名
     */
    private boolean isAnonymous;
    /**
     * 是否免费
     */
    private boolean isFreeleech;

    /**
     * 上传用户  userId
     */
    private Integer userId;

    /**
     * 上传用户  identificationNumber
     */
    private Integer uploaderId;

    /**
     * 上传用户名
     */
    private String userName;

    /**
     * 上传用户头像
     */
    private String avatar;

    /**
     * 资源唯一标识
     */
    private String messageId;
    /**
     * 上传时间
     */
    private LocalDateTime uploadTime;

    /**可选字段*/
    private String imdbLink;
    private String language;
    private String subtitleInfo;
    private String promotionStatus;
    private double uploadMultiplier;
    private String downloadDiscount;

    private boolean isConnect;
}//This is a comment
